package com.lyz.warn;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * <p>邮箱配置</p>
 * <p>需继承自javax.mail.Authenticator</p>
 * 
 * @author Dell
 * @date 2014/2/18 17:07
 */
public class MailAuthenticator extends Authenticator {
	// ******************************
		// 由于发送邮件的地方比较多,
		// 下面统一定义用户名,口令.
		// ******************************
		public static String MAIL_USER = "MBD-Data";
		public static String MAIL_PASSWORD = "ANALYSIS&all456";
		public static String MAIL_FROM = "MBD-Data@qiyi.com";
		public static String SMTP_HOST = "smtp.mail.qiyi.com";
		public MailAuthenticator(){
			
		}
		
		protected PasswordAuthentication getPasswordAuthentication() {
			return new PasswordAuthentication(MAIL_USER, MAIL_PASSWORD);
		}
}
